import request from '@/utils/http'

// 健康评估问卷
export const scale_info_assess = (params: any) => {
  return request.get({
    url: '/api/scale/info/assess/' + params.empi + '/' + params.userId
    // data: params
  })
}
// 保存健康评估问卷
export const scale_save = (params: any) => {
  return request.post({
    url: '/api/scale/info/assess/save',
    data: params
  })
}
// 所有问卷根据id区分
export const weight_info_question = (params: any) => {
  return request.get({
    url: '/api/question/info/info/' + params.id
  })
}
// 减重与中医问卷
export const new_question = (params: any) => {
  return request.get({
    url: '/api/question/info/getQuestionnaireInfo',
    data: params
  })
}
// 保存体重管理问卷
export const weight_save = (params: any) => {
  return request.post({
    url: '/api/question/info/save',
    data: params
  })
}
// 获取问卷评估结果
export const question_score = (params: any) => {
  return request.get({
    url: `/api/question/info/score/${params.id}/${params.empi}`
  })
}
